<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!--
Beyond Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3
Version: 1.0.0
Purchase: http://wrapbootstrap.com
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<!--Head-->
<head>
<meta charset="utf-8" />
<title>预约单信息修改</title>

<meta name="description" content="register page" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon"
	href="<%=request.getContextPath()%>/commonadmin/assets/img/favicon.png"
	type="image/x-icon">

<!--Basic Styles-->
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/bootstrap.min.css"
	rel="stylesheet" />
<link id="bootstrap-rtl-link" href="" rel="stylesheet" />
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/font-awesome.min.css"
	rel="stylesheet" />

<!--Fonts-->
<link
	href="<%=request.getContextPath()%>/commonadmin/js/font-useso.js"
	rel="stylesheet" type="text/css">

<!--Beyond styles-->
<link 
	href="<%=request.getContextPath()%>/commonadmin/assets/css/beyond.min.css"
	rel="stylesheet" />
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/demo.min.css"
	rel="stylesheet" />
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/animate.min.css"
	rel="stylesheet" />
<link id="skin-link" href="" rel="stylesheet" type="text/css" />
	<!--Basic Scripts-->
	<script
		src="<%=request.getContextPath()%>/commonadmin/assets/js/jquery-2.0.3.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/commonadmin/assets/js/bootstrap.min.js"></script>

	<!--Beyond Scripts-->
	<script
		src="<%=request.getContextPath()%>/commonadmin/assets/js/beyond.min.js"></script>

<!--Skin Script: Place this script in head to load scripts for skins and rtl support-->
<script
	src="<%=request.getContextPath()%>/commonadmin/assets/js/skins.min.js"></script>
</head>
<!--Head Ends-->
<!--Body-->
<body>
	<form action="<%=request.getContextPath()%>/admin/reservation/reservationRevise.htm?type=admin" method="post"
		name="stuForm" id="stuForm">
		<input type="hidden" value="${rs.reservation_id }" name="reservation_id" />
		<div class="register-container animated fadeInDown">
			<div class="registerbox bg-white">
				<div class="registerbox-caption "></div>
				<div class="registerbox-title" style="text-align: center;">预约单信息修改</div>
				<div class="registerbox-caption "></div>
				
				<div class="registerbox-caption "></div>
				<div class="registerbox-textbox">
				<div class="registerbox-col-each">
				
				<p><font style="font-weight:bold">课程名字:</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_course }" name="reservation_course" placeholder="课程名字:" required/>
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">目标:</font></p>
					<select class="reservation_goal" name="reservation_goal" > 
						<option value="60">pass</option>
						<option value="80">more than pass</option>
					</select>
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">最大人数上限:</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_max_size }" required  name="reservation_max_size"
						placeholder="最大人数上限:" />				
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">课时长:</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_period }" required  name="reservation_period"
						placeholder="课时长:" />				
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">工资:</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_wage }" required  name="reservation_wage"
						placeholder="工资:" />				
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">奖金:</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_bonus }" required  name="reservation_bonus"
						placeholder="奖金:" />				
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">是否公开:</font></p>
					<select class="reservation_ispublic" name="reservation_ispublic" > 
						<option value="0">否</option>
						<option value="1">是</option>
					</select>
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">是否发送给管理员:</font></p>
					<select class="reservation_administrator" name="reservation_administrator" > 
						<option value="0">否</option>
						<option value="1">是</option>
					</select>				
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">学校:</font></p>
				<select id="reservation_school" class="reservation_school" name="reservation_school" > 
					</select>
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">地址:</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_address }" required  name="reservation_address"
						placeholder="地址:" />				
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">推荐指数:</font></p>
				<select class="reservation_recommend_index" name="reservation_recommend_index" > 
						<option value="1">1级</option>
						<option value="2">2级</option>
						<option value="3">3级</option>
						<option value="4">4级</option>
						<option value="5">5级</option>
					</select>
				</div>
				
				<div class="registerbox-col-each">	
				<p><font style="font-weight:bold">输入创建id:（${rs.reservation_create_id }：${rs.reservation_create_name }）</font></p>
					<input type="text" class="form-control"
						value="${rs.reservation_create_id }" required  name="reservation_create_id"
						placeholder="创建人id:" />		
				</div>
				
				<div class="clearfix"></div>
				
				</div>
				
				<div class="registerbox-col-each"  style="text-align: center;">
						<input type="submit" class="btn btn-primary pull-left" value="修改">
						<input type="button" class="btn btn-primary pull-right" value="关闭"
							onclick="window.close()">
				</div>
			
		</div>
	</form>
	<script type="text/javascript">
	$.ajax({
				type:"get",
				url:"<%=request.getContextPath()%>/app/user/school.htm",
				data:{
				},
				async:false,
				success:function(data){
					s = data.data.school;
					school_list_html = "";
					for(var i = 0; i < s.length; i++){
						school_list_html = school_list_html
						+ '<option value="'+ s[i].school_name
						+ '">'+ s[i].school_name +'</option>';
					};
					$("#reservation_school").html(school_list_html);
				},
				error:function(){
					alert('获取学校列表失败');
				}
	});
					
					$(".reservation_school").val('${rs.reservation_school}'); 
					$(".reservation_administrator").val(${rs.reservation_administrator}); 
					$(".reservation_ispublic").val(${rs.reservation_ispublic}); 
					$(".reservation_recommend_index").val('${rs.reservation_recommend_index}'); 
					$(".reservation_goal").val('${rs.reservation_goal}'); 

		
	</script>

	

</body>
<!--Body Ends-->
</html>
